package xyz.comfyz.web.commons.security.provider.token.impl;

import xyz.comfyz.web.commons.security.provider.token.AbstractTokenReader;
import xyz.comfyz.web.commons.utils.WebContextUtil;

/**
 * @author :    comfy
 * @date :      2018-05-12 16:04:49
 * @since :     1.8
 * <p>
 * token读取（header）
 */
public final class RequestHeaderTokenReader extends AbstractTokenReader {

    @Override
    public String read(String key) {
        return WebContextUtil.request().getHeader(key);
    }

    @Override
    public int sort() {
        return 50;
    }
}
